<%@ page language="java" contentType="text/html; charset=UTF-8" import="org.springframework.ui.ModelMap" import="java.util.*,com.device.operating.entity.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/color.css">
<script type="text/javascript" src="/xasj/easyui/jquery.min.js"></script>
<script type="text/javascript" src="/xasj/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/xasj/js/dvoperate/editbras.js"></script>
<script type="text/javascript">
</script>
<%Bras bras=(Bras)request.getAttribute("bras");
String iprange=bras.getIprange();
String ipbegin="";
String ipend="";
if(iprange!=null){
	String[] ipr=iprange.split("-");
	if(ipr.length!=2){
		ipbegin=ipr[0];
	}else{
		ipbegin=ipr[0];
		ipend=ipr[1];
	}
}
%>
</head>
<body>
<input id="dvmodelId"value="<%=bras.getDvmodelId()%>" style="display:none">
<input id="jfId"value="<%=bras.getJfId()%>"style="display:none">
<input id="brasId" value="<%=bras.getBrasId()%>" style="display:none"/>
<div id="aa" class="easyui-panel" title="BRAS设备详细信息编辑"  data-options="fit:true,animate:false">
		<table style="padding-top:25px;padding-left:10px" 
		border="1" bordercolor="#666666" cellspacing="0" cellpadding="0" width="100%"  >
		<tr height="40px">
		<td width="10%">节点名称：</td>		
		<td width="20%">
		<input id="brasname" class="easyui-validatebox " data-options="required:true" value="<%=bras.getBrasname()%>"style="width:99%;height:100%" >
		</td>
		<td width="10%">BRAS类型：</td>				
		<td width="20%">
		<input id="swlevel" value="" style="width:99%;height:100%" disabled="true"/>
		</td>
		</tr>
		<tr height="40px">
		<td width="10%">IP地址：</td>		
		<td width="20%">
		<input id="brasip" class="easyui-validatebox " data-options="required:true" value="<%=bras.getBrasip()%>"style="width:99%;height:100%" >
		</td>
		<td width="10%">网关：</td>				
		<td width="20%">
		<input id="gateway" class="easyui-validatebox " data-options="required:true" value="<%=bras.getBrasip()%>" style="width:99%;height:100%" />
		</td>
		<td width="10%">IP地址段：</td>				
		<td width="30%">
		<input id="iprange" class="easyui-validatebox " data-options="required:true" value="<%=bras.getIprange()%>" disabled="true" style="width:99%;height:100%"/>
		</td>
		</tr>
		<tr height="40px">
		<td width="10%">IP地址段起始：</td>		
		<td width="20%">
		<input id="ipbegin" class="easyui-validatebox " data-options="required:true,validType:'ip'" value="<%=ipbegin%>"style="width:99%;height:100%" >
		</td>
		<td width="10%">IP地址段终止：</td>				
		<td width="20%">
		<input id="ipend" class="easyui-validatebox " data-options="required:true,validType:'ip'" value="<%=ipend%>" style="width:99%;height:100%" />
		</td>
		</tr>
		<tr  height="40px" id="xhrow"></tr>	
		<tr height="40px" id="jfrow"></tr>	
		
		<tr height="40px">
		<td>录入日期：</td>
		<td>
		<input id="creatdate" value="<%=bras.getCreatdate()%>" style="width:99%;height:100%;disabled:true"/>
		</td>
		<td >备注：</td>
		<td colspan="3"><input id="brasremark" value=""  style="width:99%;height:100%"/></td>
		</tr>
		<tr height="55px">
		<td></td>
		<td colspan="5">
		<a id="compledit" class="easyui-linkbutton c8" style="width:150px;height:32px">完成编辑</a>
		<a id="dvtp" class="easyui-linkbutton c8" style="width:150px;height:32px">设备拓扑</a>
		<a id="deletebras"class="easyui-linkbutton c8" style="width:150px;height:32px">删除设备</a>
		</td>
		</tr>
		</table>
		
		</div>

</body>
</html>